import { IconCamera } from '@arco-design/web-react/icon'
import {memo} from 'react'

function UserDetail() {
  return (
    <div className="relative select-none">
      <div className="flex flex-col justify-center items-center gap-4 bg-primary-300 p-2">
        <div className='size-28 relative mx-2 bg-gray-300 rounded-full'>
          <img src="https://via.placeholder.com/150x150" alt="avatar" className='w-full h-full object-cover rounded-full'/>
          <div className='absolute bottom-1 right-1 size-6 bg-primary-500 rounded-full flex justify-center items-center cursor-pointer'>
            <IconCamera style={{color: 'white'}}/>
          </div>
        </div>
        <div>xingming</div>
        <div>email</div>
      </div>
    </div>
  )
}

export default memo(UserDetail) // memoize
